﻿using System;
using System.Text;

namespace Bpms.Config
{
    /// <summary>
    /// 通用基本配置信息类
    /// </summary>
    [Serializable]
    public class GeneralConfigInfo : IConfigInfo
    {
        private string _pageTitle = "bpms";
        private string _databaseBackupPath = "~/backup/";
        private int _messageTimeDiff = 5; //单位是分
        private string _systemUrl = "http://localhost/index.aspx";  //系统的地址
        private string _messageUrl = "http://localhost/message/index.aspx"; //系统消息页面地址

        /// <summary>
        /// 系统Page Title
        /// </summary>
        public string PageTitle
        {
            get
            {
                return _pageTitle;
            }
            set
            {
                _pageTitle = value;
            }
        }

        /// <summary>
        /// 数据库备份路径
        /// </summary>
        public string DatabaseBackupPath
        {
            get
            {
                return _databaseBackupPath;
            }
            set
            {
                _databaseBackupPath = value;
            }
        }

        /// <summary>
        /// 消息提示时间间隔，单位分。
        /// </summary>
        public int MessageTimeDiff
        {
            get
            {
                return _messageTimeDiff;
            }
            set
            {
                _messageTimeDiff = value;
            }
        }

        /// <summary>
        /// 系统Web 地址
        /// </summary>
        public string SystemUrl
        {
            get
            {
                return _systemUrl;
            }
            set
            {
                _systemUrl = value;
            }
        }

        /// <summary>
        /// message 地址
        /// </summary>
        public string MessageUrl
        {
            get
            {
                return _messageUrl;
            }
            set
            {
                _messageUrl = value;
            }
        }


    }
}
